<?php
/* -------------------------------------------------------------------------------------
* 	ID:						$Id: payment_module_info.php 11 2013-09-21 11:43:11Z phone.mueller@googlemail.com $
* 	Letzter Stand:			$Revision: 11 $
* 	zuletzt geaendert von:	$Author: siekiera $
* 	Datum:					$Date: 2013-09-21 11:43:11 +0000 (Sat, 21 Sep 2013) $
*
* 	SEO:mercari by Siekiera Media
* 	http://www.seo-mercari.de
*
* 	Copyright (c) since 2011 SEO:mercari
* --------------------------------------------------------------------------------------
* 	based on:
* 	(c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
* 	(c) 2002-2003 osCommerce - www.oscommerce.com
* 	(c) 2003     nextcommerce - www.nextcommerce.org
* 	(c) 2005     xt:Commerce - www.xt-commerce.com
*
* 	Released under the GNU General Public License
* ----------------------------------------------------------------------------------- */

  defined( '_VALID_XTC' ) or die( 'Direct Access to this location is not allowed.' ); 
  class paymentModuleInfo {
    var $payment_code, $keys, $db;

    // class constructor
    function paymentModuleInfo($pmInfo_array) {
		global $db;
      $this->payment_code = $pmInfo_array['payment_code'];
	  $this->db = $db;

      for ($i = 0, $n = sizeof($pmInfo_array) - 1; $i < $n; $i++) {
        $key_value = $this->db->db_query("SELECT configuration_title, configuration_value, configuration_description from " . TABLE_CONFIGURATION . " WHERE configuration_key = '" . $pmInfo_array[$i] . "'");

        $this->keys[$pmInfo_array[$i]]['title'] = $key_value->fields['configuration_title'];
        $this->keys[$pmInfo_array[$i]]['value'] = $key_value->fields['configuration_value'];
        $this->keys[$pmInfo_array[$i]]['description'] = $key_value->fields['configuration_description'];
      }
    }
  }
?>